package com.aoxin.model.dto;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 前端树
 * 
 * @author Melody
 * @date 2018年3月26日 上午9:56:28
 */
public class TreeDto {
	/**
	 * 显示的名称
	 */
	private String label;
	/**
	 * 父ID
	 */
	@JsonIgnore
	private Integer partId;
	/**
	 * 值
	 */
	private String value;
	/**
	 * key
	 */
	private String key;
	/**
	 * 子节点
	 */
	@JsonInclude(Include.NON_NULL) 
	private List<TreeDto> children;

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getValue() {
		return value;
	}

	public Integer getPartId() {
		return partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public List<TreeDto> getChildren() {
		return children;
	}

	public void setChildren(List<TreeDto> children) {
		this.children = children;
	}
}
